package aop.bean;

public class Student {
    private String name;
    private Integer age;

    public String getName() {
        System.out.println("Student.getName");
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" + "name='" + name + '\'' + '}';
    }
    public Integer getAge() {
        System.out.println("Student.getAge");
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void printThrowException(){
        System.out.println("Student.printThrowException");
        throw new IllegalArgumentException();
    }
}
